Conversation
6b3f506 to
85ae126
Compare
Cloudflare deploymentDeployement ID: 0d7d6b92-e060-4a91-a69f-1a1c36ec367a ⛅️ wrangler 4.63.0 (update available 4.81.0) ✨ Uploading _redirects |
| In previous versions, users couldn't ship their compiled JS code without defining a `package.json` dependency on `bs-platform`. Whenever a ReScript developer wanted to publish a package just for pure JS consumption / lean container deployment, they were required to use a bundler to bundle up their library / stdlib code, which made things way more complex and harder to understand. | ||
|
|
||
| To fix this problem, we introduced an `external-stdlib` configuration that allows specifying a pre-compiled stdlib npm package (`@rescript/std`). More details on how to use that feature can be found in our [External Stdlib](../docs/manual/build-external-stdlib.mdx) documentation. | ||
| To fix this problem, we introduced an `external-stdlib` configuration that allows specifying a pre-compiled stdlib npm package (`@rescript/std`). |
There was a problem hiding this comment.
I think this setting was removed in v12.
|
|
||
| ### Array spreads | ||
|
|
||
| **Since 11.1** |
There was a problem hiding this comment.
I think we should leave the "since (version)" parts of the docs.
These documentation edits were generated by AI with the following prompts:
What changed
Overview page rewritten (
overview.mdx): The "Comparison to JS" two-column table format (JavaScript | ReScript) was replaced with a standalone syntax reference. Each section now describes ReScript on its own terms rather than defining it relative to JavaScript.Removed deprecated pages:
browser-support-polyfills.mdx-- outdated ES5/TypedArray polyfill guidancebuild-external-stdlib.mdx-- theexternal-stdlib/@rescript/stddocumentationPath.resDeprecated config keys updated (
build-configuration.mdx,build-monorepo-setup.mdx):bs-dependencies/bs-dev-dependenciesrenamed todependencies/dev-dependencies(with a note that legacy keys are still accepted)bsc-flagsrenamed tocompiler-flags(with the same deprecation note)external-stdlibsection removedFloat operators modernized for v12+ across multiple files:
+.,-.,*.,/.replaced with unified operators+,-,*,/primitive-types.mdxupdated to document that arithmetic operators work for bothintandfloatTone and phrasing adjustments across ~20 files:
=P,=),thankfully, jokes about bosses)DefinitelyTypedecosystemBelt_Array.mapto.map,Belt_Array.concatManyto native spreads)Files changed
browser-support-polyfills.mdx,build-external-stdlib.mdxoverview.mdxbuild-configuration.mdx,build-monorepo-setup.mdxprimitive-types.mdx,interop-cheatsheet.mdx,type.mdx,generalized-algebraic-data-types.mdx,extension_identity.mdx,language_labeled_argument.mdx,language_open.mdxintroduction.mdx,array-and-list.mdx,async-await.mdx,control-flow.mdx,converting-from-js.mdx,editor-plugins.mdx,embed-raw-javascript.mdx,exception.mdx,external.mdx,function.mdx,generate-converters-accessors.mdx,import-from-export-to-js.mdx,interop-with-js-build-systems.mdx,jsx.mdx,libraries.mdx,module.mdx,record.mdx,shared-data-types.mdx,build-performance.mdx